//
//  BaseViewController.m
//  TestApplication
//
//  Created by Hanlingyu on 16/8/26.
//  Copyright © 2016年 ltq. All rights reserved.
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor colorWithWhite:0.928 alpha:1.000];
    self.automaticallyAdjustsScrollViewInsets = NO;
    self.edgesForExtendedLayout = UIRectEdgeNone;
//    self.navigationController.navigationBar.barTintColor = [UIColor colorWithWhite:0.087 alpha:1.000];
    self.navigationController.navigationBar.hidden = YES;
    
        
    self.navigationController.navigationBar.barStyle = UIBarStyleBlack;
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:17], NSForegroundColorAttributeName:[UIColor whiteColor]}];
    
    
    CGRect backView_frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 64);
    UIView *backView = [[UIView alloc] initWithFrame:backView_frame];
    
    UIColor *backColor = [UIColor colorWithRed:55 / 255.0 green:55 / 255.0 blue:55 / 255.0 alpha:1];
    backView.backgroundColor = backColor;
    self.backView = backView;
    self.backColor = backColor;
    [self.view addSubview:_backView];
    //

    
}

- (void)viewWillAppear:(BOOL)animated {
//    self.navigationController.navigationBar.barTintColor = [UIColor colorWithWhite:0.087 alpha:1.000];

}

//- (UIStatusBarStyle)preferredStatusBarStyle
//{
//    return UIStatusBarStyleDefault;  //默认黑色
////    return UIStatusBarStyleLightContent; //白色
//}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
